add weight coefficients calculation
add number counter