Numpy Count Instances In Array In Php Associative Array