I have a string, for example "This is an example." and in this sentece is another words - "a little test". I would like to know how many times is "a little test" in the sentence. Is there any way? Thanks
string tmp = "This a little test is a little test an example. a little test";
int sum = ...... (the count of "a little test")