AddSample acts like a counter