Your answer is incorrect.
$facet does accept $sortByCount as a sub-pipeline stage.
I’ve run this task and received an error:
"errmsg" : "the sortByCount field must be defined as a $-prefixed path or an expression inside an object"
I checked 3 correct items:
< deleted >
Please check it