Added Count and MongoIdSafe

Count the number of documents in a collection and create a MongoId
without generating an error if an invalid ID is passed