extract coeficient count function