Sharded counter Java sample, checked coding style with CheckStyle.