def expected_bin_count(start_bin, end_bin, freq):
    """Get expected number of bins in a given range of bins."""
    # XXX(mmg): optmize this
    # Should be ((end_bin - start_bin) / freq) + 1  ??
    return ((end_bin - start_bin) / freq) + 1
    # s = start_bin + 0 # making a copy
    # bincount = 0
    # while s <= end_bin:
    #     bincount += 1
    #     s += freq
    # return bincount