Teaching dogs not to counter surf