The pound has three kinds of dogs: pit bull, chihuahuas and mutts. All but 23 of the dogs are pit bull, all but 17 are chihuahuas, and all but 28 of the dogs are mutts. How may dogs are in the pound?