Python Count Number Of Each Element In Array