https://leetcode.com/problems/counting-words-with-a-given-prefix/


Runtime: 77 ms, faster than 82.61% of TypeScript online submissions for Counting Words With a Given Prefix.

Memory Usage: 44.4 MB, less than 95.65% of TypeScript online submissions for Counting Words With a Given Prefix.


```typescript
function prefixCount(words: string[], pref: string): number {
    //7:55
    let counting = 0
    for (const word of words) {
        if (word.startsWith(pref)) {
            counting += 1;
        }
    }
    return counting;
    //7:56
};
```

