update sample count