added code to update warning and error counts when blocks are removed

Change-Id: I28d858bfb09470cfa66ef2afe9228ee48e105b43