1. Check that your file actually opened. Yes, really!
2. Use std::string rather than c-strings; you already have a #include <string> header. If you insist on using c-strings then you would need #include <cstring> here for strcmp().
3. cout<<count<<; is an extremely odd (and wrong) line.
4. "it doesn't work" is not a helpful description of the problem. Actually, it doesn't compile.
5. Please use code tags. Then we can test the code with c++ shell rather than having to download and re-format it.
6. Tell the user that you require input. Don't just use gets(c) and expect him to remember.