added piece count methods