I’m sure I’m not the first person to point out the similarities. And granted, the Count of Monte Cristo might be more antihero than hero, but the similarities are pretty striking. A wronged man seeks justice on his enemies by drawing on his wit and unlimited wealth to create an avenging alter ego that all but consumes him. Plus you’ve got a secret cave lair. I could go on.
I’ve never heard that the classic novel was an inspiration for Batman, but the template is definitely there.