Typescript Array Count Method Pandas