If $1 \le a \le 10$ and $1 \le b \le 36$, for how many ordered pairs of integers $(a, b)$ is $\sqrt{a + \sqrt{b}}$ an integer?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
If $1 \le a \le 10$ and $1 \le b \le 36$, for how many ordered pairs of integers $(a, b)$ is $\sqrt{a + \sqrt{b}}$ an integer?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
10
If $1 \le a \le 10$ and $1 \le b \le 36$, for how many ordered pairs of integers $(a, b)$ is $\sqrt{a + \sqrt{b}}$ an integer?
train