Python Count Occurrences In Numpy Array To Scalarworks