Numpy Count Instances Python Compiler