Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
If this reducing count is for the Sitelinks SearchBox, then please note that Rank Math adds the Sitelinks search box only to the homepage as it only needs to be present on the homepage as per Google’s guidelines which is why you are seeing a drop in sitelinks in GSC:
https://developers.google.com/search/docs/data-types/sitelinks-searchbox#guidelines
The Sitelinks SearchBox Schema will drop further until you see just one valid page.
If for some reason you want that on all your pages, please follow this tutorial:
https://rankmath.com/kb/sitelinks-searchbox-schema/
I hope this helps. Looking forward to helping you.
The number of pages is decreasing for the Sitelinks SearchBox and Navigation bars here is attaching a picture!
1 I found the tutorial you sent for for the Sitelinks SearchBox!
Will this code fix Navigation Bars too? Because I’m interested in Navigation Bars 
Hello,
Yes, by adding the code mentioned above my colleague should increase the number of pages with Sitelinks SearchBox schema. However, Google will take some time to crawl and index those new changes so you have to wait for some time.
We hope that answers your question. Let us know if you need further assistance. Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.