counting insertion