removed commented out code in block counting function