In Python, I\'m trying to count the number of data points in a histogram bin given that their associated variable is a value. For example, I have two arrays: the first has the d