Numpy Count Instances In Array In Sql