added count.cpp a counter option example