offset trend counting