Fixed #1138: Count ternary and or operators for complexity