Numpy Array Count Function In Sql