Statistics in the sidebar

Hello boys and excused for my bad English. I want to insert in sidebar of mine blog made in wordpress the total number of the topic of the forum bbpress that they find themselves in the rows statistics.php. How I must make?

It would require a quick plugin. There is already a plugin to have the recent discussions in bbPress in wordpress, but it would be just another simple plugin using the calls made in statistics.php into a wordpress plugin.