the solution of the CountNonDivisible