Python Array Count Method In Mysql Operators