Given the data set, Find the average education level in the sample. What are the lowest and highest years of education?

Code:
summarize educ
Thus, I can find the min and max value of variable "educ". How to count the number of observations at the min and max value?

I know one method is: (0 is the min value)

Code:
list educ if educ==0
Then I can count the numbers.

Do I have better methods that Stata can give me the number automatically?