When creating a static variable, in the class declaration these variables need to be marked with the static keyword:
static int s_counter;
In the C++ file, the static variable needs to be defined, outside of any functions, like this:
int Kitten::s_counter = 0;
Every time a constructor is run, it adds to the count. Every time a destructor is run, it subtracts from the count.