#include <iostream>
using namespace std;
class Foo {
public:
Foo()
{
counter++;
}
static int getCount()
{
return counter;
}
protected:
static int counter;
};
int Foo::counter = 0;
int main(int argc, char *argv[]) {
Foo f;
Foo b;
cout << Foo::getCount() << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEZvbyB7CgogICAgcHVibGljOgoKICAgIEZvbygpCiAgICB7CiAgICAgICAgY291bnRlcisrOwogICAgfQoKICAgIHN0YXRpYyBpbnQgZ2V0Q291bnQoKQogICAgewogICAgICAgIHJldHVybiBjb3VudGVyOwoKICAgIH0KICAgIHByb3RlY3RlZDoKICAgIHN0YXRpYyBpbnQgY291bnRlcjsKfTsKCmludCBGb286OmNvdW50ZXIgPSAwOwppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKSB7CgogICAgRm9vIGY7CiAgICBGb28gYjsKICAgIGNvdXQgPDwgRm9vOjpnZXRDb3VudCgpIDw8IGVuZGw7Cn0K