Se il nome utente è univoco, puoi contare gli elementi dell’array con aggregazione:
db.test.insert({username:"Alex", tags: ['C#', 'Java', 'C++'] });
db.test.aggregate([
{$match: {username : "Alex"}},
{$unwind: "$tags"},
{$project: {count:{$add:1}}},
{$group: {_id: null, number: {$sum: "$count"}}}
]);$match isola il documento, $unwind espande l’array e $group somma gli elementi.