This question has already been answered:
How to count the number of C # keywords in the source text file (* .cs) so that the found keywords are displayed as a table: keyword N - how many times it occurs.
Provided that the words in the comments are not considered
Ilya Ilya49 7 7 bronze marks
Reported as a duplicate by members aleksandr barakin , 0xdb , VladD .net Members with Signs .net can single-handedly close questions with a tag as duplicates, and also re-open them if necessary. 1 Sep '18 at 20:35 .
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .