better behavior count update