The average dog understands 89 words, researchers find