#include <iostream>
#include <map>
#include <string>
using namespace std;

main()
{
   std::map<int,int> test;

   int i;

   int a;

   std::map<int,int>::iterator it;

   for (i=0;i<10;i++)
   {
	it = test.find(1);
	if (it->first == test.end())
	{
		test[1]=1;
	}
	else
	{
		it->second++;
	}
   }

   it = test.find(1);

	if (it->first == test.end())
	{
		std::cout << "Not found.  Hmmm.\n";
	}
	else
	{
		std::cout << "Found it.  Count is " << it->second << "\n";
	}
}
