Program to count no. of objects of a class using a static member function.