I had a thought that it might be valuable to better state the precedence of options that I mentioned earlier. Let me give it a go, in the form of a pseudocode flowchart:
Count option rules: if "In selection" is ticked Count will be occurrences within the selected text (of a single, non-column-block) selection else if "Wrap around" is ticked Count will be occurrences within the entire document else if "Backward direction" is ticked Count will be occurrences from the start of document to the (main) caret else Count will be occurrences from the (main) caret to the end of the documentThe use of “(main)” is important if you have multiple carets active at once (i.e., multi-editing enabled).
You only have one “main” caret, which is the most-recent one you created.