Would this be covered by the jobs::EnsureDbConsistency background job?
You can manually trigger it from your /sidekiq/scheduler page if you want to speed it up and see if that rebuilds your counts for you.
Though if you can go into a little more detail about why you need to recalculate them it may add some extra context that could be important.