This is more complicated than it sounds (or than it should). If you want to go for it, in How can I calculate how many back links referenced to a particular page? there is a query that:
- uses a
(count )
in:find
- uses a
(sort-by )
in:result-transform
- renders an extra column in
:view