An ordered pair is written as (a,b). Two ordered pairs (a1,b1) and (a2,b2) are equal when a1=a2 and b1=b2.
Given a natural number N, write a program that counts the distinct ordered pairs (a,b) whose product a×b equals N. Both a and b must be natural numbers.