Vision system eliminates count deviations, inspects vials