How To Count Elements In An Array In Python