The Wisdom of the Crowd and Higher-Order Beliefs