add the api example of countClass