Is there any method to know whether a set is empty? Or is there any method to get the number of elements in a set?