#include <iostream>
using namespace std;

class Hello {
public:
    static int myCount;
    void test(){
        //do nothing
    };
    Hello(){
        Hello::myCount += 1;
    };
    ~Hello() {
        Hello::myCount -= 1;
    }
};

int Hello::myCount;


int main(int argc, const char * argv[]) {
    // insert code here...
    Hello *p1 = new Hello();p1->test();
    Hello *p2 = new Hello();p2->test();
    cout << Hello::myCount;

    return 0;
}