format piece count numbers