insert should update the key count