Would you be so kind to give some example for "Make a loop and count bins by checking low and high of each bar"?

That would be really great and I am sure others may benefit a lot from it too.