I want to know how i can get a count of all the rows i get out of my MongoDB collection.
var collection = db.collection( _collection ).find();
Right now i don't know about there are somting or not in it, if need to follow on how maney rows i get out from my collection.
are there somene better way for me to get my "data" out widtout using the Stream function?
var stream = collection.find().stream();
stream.on("data", function(item)
{
console.log(item.zipcode);
});
stream.on("end", function()
{
});
how i can get a kind of help, :)