Fix input warning
Add offset for counters