Count Function In Array In Python