filter velocityCount in foreach