The Mahabharata is traditionally divided into 18 parvas (books), not chapters. Each parva is further subdivided into chapters. The number of chapters within each parva varies significantly.
Therefore, it's difficult to give a single number for the total number of chapters in the Mahabharata.