template class TheClass { static int s_objectCounter; // declaration }; template // definition int TheClass::s_objectCounter = 0;