MongoDB: implemented function count_tables()

Hi Jakub,

Here's implementation of `count_tables()` function for MongoDB driver.