Figures I would search for the wrong thing...
Anyway, I hate to be a bother but is there any speacific reason why "no" always returns as 0?
As far as I can tell I'm using the count() functions correctly, and there is obviously more than 0 #includes in the string...
using namespace std;
string search = "#include";
//int no= 0;
int no = count(vs.begin(),vs.end(),search);