How did Pierre become count bezuhov from war and peace?

In War and Peace: Count Bezukhov dies, and after a struggle over the will, Pierre Bezukhov inherits all his father's estates and wealth.

Related questions