Typescript Check Type Of String Array Count