Count Number Of Elements In Array Python