Counter design using generate