The short answer
There is no single agreed number. Accounts differ, and sources give different dates and details. Still, several incidents are named again and again: early incidents linked to the time of Ashoka, a persecution in the 2nd century BCE, a cutting around 600 CE, a storm in 1876 and some modern events. Each loss was followed by regrowth from a surviving sapling or cutting.
Incidents linked to Ashoka’s time
Traditional accounts say that Queen Tishyarakshita, wife of Emperor Ashoka, ordered the tree cut down in the 3rd century BCE. Some traditions date this to around 254 BCE.
The Chinese pilgrim Xuanzang, who visited India in the 7th century CE, reported that Ashoka himself had damaged the tree before he converted to Buddhism. According to that account, Ashoka later tended the tree and bathed its roots in milk. These stories are traditional and have not been confirmed by archaeology.
Ashoka lived more than a century after the Buddha died. That means the question of whether Buddha and Ashoka met, which people sometimes raise in connection with these stories, can be answered no.
A persecution in the 2nd century BCE
Some accounts say that King Pushyamitra Shunga, who is traditionally linked with harm to Buddhist sites, damaged the tree in the 2nd century BCE. Other sources date the same event to the 3rd century BCE. The evidence is traditional, so the event is best treated as uncertain.
A cutting around 600 CE
Accounts say that King Shashanka of Gauda, in what is now Bengal, cut the tree down around the early 7th century CE, or around 600 CE depending on the source. A sapling was later grown in its place.
The 1876 storm and the 1881 planting
By the 19th century, the tree was in poor health. The British archaeologist Alexander Cunningham noticed it was dying while repairs were underway at the Mahabodhi Temple. In 1876, a storm brought down what was left of the tree. A young tree grown from the same parent was already growing nearby.
In 1881, Cunningham planted the tree that stands at Bodh Gaya today, using a cutting from the Sri Lankan tree.
Modern events
In July 2013, several small bomb blasts hit the Mahabodhi Temple complex. Reports say the Bodhi Tree was not harmed. Some nearby structures were damaged, and a few people were hurt, including two monks.
Why the count is hard to pin down
Early sources give different dates and numbers, and some stories are traditional rather than documented. Historians therefore avoid a single count. What the accounts do agree on is the pattern: the tree was lost more than once, and each time a new tree grew from a surviving sapling or cutting.
The short version
The Bodhi Tree was cut down, damaged or lost several times in traditional and historical accounts, and each loss was followed by regrowth. The count depends on which sources you accept, but the tree standing at Bodh Gaya today grew from earlier trees.