A new study has shown that dogs actually understand us better than we thought.