Python Count Number Of Elements In Array