Main class and count class has been implemented