<codility> solution to count non divisors