Classification by number of terms