Functions
Function-26
Function-27
Function-28
~/algor $ cat problems/funksiya-eng-kop-boluvchili-son
Divisor count function
Easy
1000 ms
128 MB
27%
Write a function DivisorCount(x) that returns the number of positive divisors of the positive integer $x$.
Example 1: DivisorCount(12) → 6 — $1$, $2$, $3$, $4$, $6$, $12$.
Example 2: DivisorCount(7) → 2 — $7$ is divisible only by $1$ and itself.
Write only the function body.
Input
One line with a positive integer $x$ — the argument of the function.
Output
The value returned by the function: an integer.
Note
$1 \le x \le 10^{6}$
Examples
Input #1
12
Output #1
6
Input #2
7
Output #2
2