[graph] fix term count for sidebar

It was reduced by 1 because the currently selected term was also
counted. Now the algorithm changed, so we don't need to subtract 1
anymore.
3 jobs for 749-dev-sidebar-related-terms-ordering in 21 minutes and 7 seconds (queued for 5 seconds)
latest
Status Job ID Name Coverage
  Check Lint
passed #19170
check-lint

00:05:54

 
  Compile
passed #19171
compile

00:08:11

 
  Test
passed #19172
test

00:07:00