Adding deferred promise for mongo db collections count