Avoid overflow of processed samples count.