Why would you jump straight to that conclusion?
At 40, it is entirely possible for a prospective wife to have had at most ~3-5 partners in her lifetime. She would have been in long-term relationships for most of her adult life. Anyone with a history of long-term relationships is a pretty good bet that when trouble hits, they'll be there for it.
23 partners behind anybody is a red flag, but these days a bigger red flag would be any kind of vague abuse story surfacing early on (same goes for prospective friends or employees). Anyone who starts new relationships with strangers by defaming the previous one is going to be trouble (never hire a whistleblower). You will also forever be kept in check through fear of inadvertent "triggering" of vague traumas from past vague abuses you'll never fully understand, and when they leave they'll shake you down while telling the next partner how abusive you were to them. I'd say this is a gen-z thing but the worst two cases I've seen were perpetrated by the 38-50 age group, and /r/divorce has no shortage of these sorts of histrionic scam artists.
For the same reason, I would also recommend coming to terms early on vis-a-vis porn. This was by far the single most cringeworthy post I've ever seen on Reddit (the OP deleted it, but the comments retain context):
https://www.reddit.com/r/Divorce/comments/15b79d6/recording_...
The OP comes in claiming she caught her husband taking upskirt videos of strangers at a music festival 8 years ago. Except what she describes isn't an upskirt video by any interpretation, yet she continues to use all sorts of lurid language to frame him as a liar, a criminal, a porn-addicted sex addict, a sexual predator, and a voyeur-- and she was quick to change the story (then it became "he secretly filmed me during sex") and insult anyone who challenged her narrative. If it applies to you, settle the porn question early on so you don't have someone later trying to publicly humiliate you by litigating what you do on the toilet. (And for fuck's sake never claim to be a sex addict to explain away porn use, much less document that by agreeing to go to counseling for it. Just own it then and there-- divorcing over porn makes her look petty, but divorcing because you're a documented sex addict who bailed on therapy makes you look like a monster.)