Problem

Return how many positive divisors n has (include 1 and n).

Examples

  • countDivisors(6) -> 4
  • countDivisors(7) -> 2
Compile and test (Ctrl+Enter)