Remove gradle hidden file.
Extract max counter from PosReader to adapter.