#!/usr/bin/env perl use strict; use warnings; my $n = <>; chomp $n; my $c = 0; my $nn = int(sqrt($n)); my $check = $nn * $nn == $n ? 1 : 0; for (my $i = 1; $i < $nn + 1 - $check; $i++) { if ($n % $i == 0) { $c++; } } print $c * 2 + $check . "\n";