Easy one-liner C#
\n# Approach\nUsing Count and StartsWith\n\n# Code\n\npublic class Solution {\n    public int CountPrefixes(string[] words, string s) {\n        return words.Co
\n# Approach\nUsing Count and StartsWith\n\n# Code\n```\npublic class Solution {\n    public int CountPrefixes(string[] words, string s) {\n        return words.Count(i => s.StartsWith(i));\n    }\n}\n```
['C#']