Find the number of pairs of elements, from a group of order $2011$, such that the square of the first element of the pair is equal to the cube of the second element.

Let's think step by step and output the final answer within \boxed{}.
user