Looking to develop a TypeScript function that can take an array of any type as input, calculate the number of elements present in it, and return the count.
An example output would be: If user inputs: ["soccer", "basketball"] Then output: 2
Any suggestions on how to tackle this problem using TypeScript?