I think it would be something like this.
var query = {job:"developer",sick:1};
User.count(query, function(err, count) {
if(err) console.log(err);
console.log(count);
});
The better way(depending on if you want to use the returned documents) is to use .length. However, if you are just doing this for speed then count is probably better.
To do it with .length:
User.find({job: 'developer'}, {sick: 1}, function(err, docs){
var length = docs.length;
console.log(length);
})
The Difference
.count() will only return the length without making a full query and loading the documents, while .length will take a returned array and get the length, which could take longer depending on what is being stored in your database