How To Count Array Elements In Python