Count Numbers In Array Python Definition Function