Counting coefficients