solve increment counter