Determine the number of ordered pairs \((a,b)\) of integers such that \(\log_a b + 6\log_b a=5, 2 \leq a \leq 2005,\) and \(2 \leq b \leq 2005.\)

(第二十三届AIME2 2005 第5题)