Typescript Count Array Python Definition Functionally Illiterate