h_worsen_counter function

Helper function to analyze patients for s_count_abnormal_lab_worsen_by_baseline()