added brick counter

added brick counter to count bricks