#include <iostream>

using namespace std;


class Punkt {
  private:
    double X, Y;
    unsigned numer;
    static unsigned iloscPunktow;
  public:
    Punkt(){X=Y=0; numer = ++iloscPunktow; cout << "Punkt numer: " << numer << endl;}
    Punkt(double X, double Y): X(X), Y(Y)
    {
      numer = ++iloscPunktow;
      cout << "Punkt numer: " << numer << endl;
    }

    ~Punkt(){cout << "Kasujemy punkt (" << X << ',' << Y << ")." << endl;}
    unsigned ilosc()const { return iloscPunktow; }
};

unsigned Punkt::iloscPunktow = 0;

int main()
{
  Punkt A;
  cout << "Ilość punktów: " << A.ilosc() << endl;
  Punkt B(-10.0, 56);
  cout << "Ilość punktów: " << A.ilosc() << endl;
  return 0;
}
