Assuming you're on *nix, though.
lol, and here's the help I forgot to add (if you're using Windows):
You can use the find command. Example, let's say that you're looking for the string
lol!! in a file called
lol.txt.
If it's in there once, it would return this.
find "lol!!" lol.txt
---------- LOL.TXT
"lol!!"
Unfortunately, I don't know if you can use a 'greater than' operator in batch files (if you could, you could use the /c switch to show you the count of lines containing it (example: 2)). If you can find a way to use the greater than operator, go for it.