counting offset