added filter logic to PartCount