Accidentally removed numberOfButtons: method, which is now a private method to be used internally.