What Feist has done in his Conclave of Shadows trilogy is displace this story into the fantasy world of most of his novels (called Midkemia). There, a boy named Talon of the Silver Hawk is not imprisoned per se (like The Count of Monte Cristo character), however, he is reborn when his village is annihilated by some callous nobles who found his people to be "in the way" of their geographical goals. Left for dead, he is revived by members of a powerful and secret society with super deep pockets (think endless money) who educate him in all the same ways as Edmond Dantes goes through in The Count of Monte Cristo. He becomes a superb fencer, learns several different languages, and is firmly ensconced in a city called Roldem, which is just a city a stand-in for medieval Paris. The Conclave of Shadows gave this young man a new identity, calling him Tal Hawkins, and he is a new noble having come from the West. He promptly makes a name for himself by winning the Master's Sword Tournament (a very prestigious title), and he beds lots of noble women who find him very attractive. And then he gets a man servant who is an assassin, named Amafi, who is as loyal as Jacopo ever was to Edmond Dantes. Of course, he trains this agent of his to be his valet while he moves the pieces on the board to plot his revenge.
The revenge element begins with young Tal Hawkins attracting the eye (and thusly being recruited by) the very noble who was responsible for his village's death. And Tal doesn't just want to kill this duke. No, he wants to humiliate him, to bring about his ruin so that as/when the duke dies, he knows exactly why this is happening and who it is that is bringing about his ruin. And just like in the Count of Monte Cristo, his method of taking down his enemies by understanding their character and circumstances and bringing them to utter ruin through a few carefully chosen actions is incredible to witness. It really is a delight to read seeing as 1) I'm familiar with the story, and 2) it is one of my favorites, and 3) the sleight "magical" elements in the book change it up enough to heighten the tension in odd ways.
I'm actually quite surprised to see a fantasy novel mine classical literature like The Count of Monte Cristo. The main themes of revenge, love, culpability, greed, and ambition are all there, and they are treated in a way that does not allow easy answers. And it's a novel where the main character, this Tal Hawkins, is quite likeable not only because he is good, but because he is also evil. He is both the hero and the villain of the story, and that's just really interesting.