Database

[{"asistencia":false,"created":new Date()},{"asistencia":false,"created":new Date()},{"asistencia":true,"created":new Date()},{"asistencia":true,"created":new Date()},{"asistencia":false,"created":new Date()},{"asistencia":true,"created":new Date()},{"asistencia":true,"created":new Date()},{"campo":"valor","created":new Date()}]

Query

db.collection.aggregate([{$group:{"_id":null,asistencias:{$sum:{$cond:{if:{$eq:["$asistencia",true]},then:1,else:0}}}}}])

Result