Change blockCountChanged from a method to an event (credit goes to Scott Haynes)