allow to set tol for count and int