Count Elements In Array In Python