CodeMirror6 - How do I get the order and total number of the current search

I’m tring to create my own UI seach panel like this:

How do I get the order and total number of the current search

The search extension doesn’t eagerly scan the entire document for matches, so that information isn’t available.

Do you plan to add relevant information and provide interfaces?

No, no short term plans for that exist.