Added auto count of coefficients