The Complexity of Cognition