I came here because I had the same problem, but when I did #include "stdafx.h" it said it did not find that file.
What did the trick for me was: #include .
I use Microsoft Visual Studio 2008.
These are the things that you can use then, incl. 'count': Link