Amazing talent: Dog is 'maths genius'