SciPy

scipy.LowLevelCallable.count

LowLevelCallable.count(value) → integer -- return number of occurrences of value