added count_clicks() method to class button