#include <iostream>    
#include <vector>
 
 
class PUNKT{
public:
    PUNKT(int px=0, int py=0): x(px),y(py) {++zaehl;}
    PUNKT(const PUNKT& other): x(other.x),y(other.y) {++zaehl;}
    ~PUNKT() {--zaehl;}
    static void ausgabe();
private:                                     
    int x,y;
    static int zaehl;       // Anzahl der Elemente
};
 
int PUNKT::zaehl=0;
 
void PUNKT::ausgabe() {
    std::cout << zaehl << '\n';
}
 
int main(int count, char **args) {
   
    std::vector<PUNKT> test;
    test.push_back(PUNKT(2,3));
    test.push_back(PUNKT(2,3));
    test.push_back(PUNKT(2,3));
    PUNKT::ausgabe();
    test.clear();
    PUNKT::ausgabe();
    return 0;
}