C# Linq 1-liner | 87ms 95%
Code\n\npublic class Solution {\n    public int CountPrefixes(string[] words, string s) \n        => words.Count(s.StartsWith);\n}\n
# Code\n```\npublic class Solution {\n    public int CountPrefixes(string[] words, string s) \n        => words.Count(s.StartsWith);\n}\n```
['C#']