No.
"No matter how many times she racked her brain, she couldn't remember him." We wouldn't normally speak of racking our brain more than once. I would expect "No matter how she racked her brain, she couldn't remember him." "However she racked her brain, she couldn't remember him" is also correct but is perhaps a bit formal for the idea.