Thousands of unwanted dogs put down