Typescript Count Unique Values Python Snake Pictures