Add method to count sets