MongoDB: implemented function count_tables()

Hi Jakub,

Here's implemented function `count_tables()` from MongoDB driver.