[refact] more structured code from counter handling. Counter analylyse/send also tries to save more accurate counter changes.