Does not go to the gym for a month count as a class?
Not exactly. Running a monthly card in the gym instead of attending classes is not a class. Asking for leave means temporarily not attending classes or using gym facilities, and the validity period of the card will be extended accordingly. Generally speaking, gyms have certain leave policies, and the specific regulations vary according to the policies of gyms.