Typescript Array Count Method In Javascript W3schools