Count Numbers In Array Python Memory