Revert "get rid of count(*) overrides query"
Revert "get rid of count(*) overrides query"

This reverts commit b5c63024e0790cb3e8ef793d342bfe0411b734dd.

fixes CNVS-14018

test plan:
- specs should pass

Change-Id: I021598d81fb9462d6470e3b3a038e96b3d8060b4
Reviewed-on: https://gerrit.instructure.com/37366
Reviewed-by: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>
Product-Review: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>
QA-Review: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>
Tested-by: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>

utkarshx/canvas-lms,Jyaasa/canvas-lms,HotChalk/canvas-lms,sdeleon28/canvas-lms,snehakachroo1/LSI_replica,venturehive/canvas-lms,gbleydon/canvas-lms,juoni/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,jay3126/canvas-lms,kyroskoh/canvas-lms,instructure/canvas-lms,greyhwndz/canvas-lms,eCNAP/CANVAS,kyroskoh/canvas-lms,djbender/canvas-lms,va7map/canvas-lms,dgynn/canvas-lms,wrdsb/canvas-lms,Unow/canvas-lms,samuels410/greatlakes-lms,jay3126/canvas-lms,dgynn/canvas-lms,samuels410/greatlakes-lms,fronteerio/canvas-lms,va7map/canvas-lms,grahamb/canvas-lms,samuels410/greatlakes-lms,snehakachroo1/LSI_replica,Unow/canvas-lms,fronteerio/canvas-lms,whalejasmine/canvas-lms,instructure/canvas-lms,HotChalk/canvas-lms,redconfetti/canvas-lms,utkarshx/canvas-lms,SwinburneOnline/canvas-lms,Rvor/canvas-lms,matematikk-mooc/canvas-lms,leftplusrightllc/canvas-lms,matematikk-mooc/canvas-lms,skmezanul/canvas-lms,snehakachroo1/LSI_replica,grahamb/canvas-lms,tgroshon/canvas-lms,matematikk-mooc/canvas-lms,narigone/canvas,grahamb/canvas-lms,fronteerio/canvas-lms,AndranikMarkosyan/lms,dgynn/canvas-lms,sfu/canvas-lms,antoniuslin/canvas-lms,Unow/canvas-lms,whalejasmine/canvas-lms,roxolan/canvas-lms,wrdsb/canvas-lms,sfu/canvas-lms,wye0220/shindig-canvas,sfu/canvas-lms,Jyaasa/canvas-lms,gbleydon/canvas-lms,skmezanul/canvas-lms,narigone/canvas,AndranikMarkosyan/lms,whalejasmine/canvas-lms,greyhwndz/canvas-lms,wrdsb/canvas-lms,Rvor/canvas-lms,djbender/canvas-lms,djbender/canvas-lms,skmezanul/canvas-lms,roxolan/canvas-lms,tgroshon/canvas-lms,wye0220/shindig-canvas,sfu/canvas-lms,juoni/canvas-lms,utkarshx/canvas-lms,SwinburneOnline/canvas-lms,efrj/canvas-lms,matematikk-mooc/canvas-lms,sfu/canvas-lms,shidao-fm/canvas-lms,venturehive/canvas-lms,snehakachroo1/LSI_replica,ShreniiNepal/shrenii_lmp,venturehive/canvas-lms,Jyaasa/canvas-lms,shidao-fm/canvas-lms,whalejasmine/canvas-lms,greyhwndz/canvas-lms,efrj/canvas-lms,skmezanul/canvas-lms,tgroshon/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,Rvor/canvas-lms,ShreniiNepal/shrenii_lmp,wye0220/shindig-canvas,Rvor/canvas-lms,eCNAP/CANVAS,HotChalk/canvas-lms,instructure/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,utkarshx/canvas-lms,sdeleon28/canvas-lms,redconfetti/canvas-lms,SwinburneOnline/canvas-lms,venturehive/canvas-lms,instructure/canvas-lms,juoni/canvas-lms,fronteerio/canvas-lms,instructure/canvas-lms,greyhwndz/canvas-lms,grahamb/canvas-lms,va7map/canvas-lms,roxolan/canvas-lms,shidao-fm/canvas-lms,redconfetti/canvas-lms,AndranikMarkosyan/lms,Jyaasa/canvas-lms,redconfetti/canvas-lms,narigone/canvas,antoniuslin/canvas-lms,ShreniiNepal/shrenii_lmp,eCNAP/CANVAS,roxolan/canvas-lms,ShreniiNepal/shrenii_lmp,instructure/canvas-lms,dgynn/canvas-lms,shidao-fm/canvas-lms,djbender/canvas-lms,jay3126/canvas-lms,sdeleon28/canvas-lms,sdeleon28/canvas-lms,HotChalk/canvas-lms,juoni/canvas-lms,instructure/canvas-lms,efrj/canvas-lms,samuels410/greatlakes-lms,sfu/canvas-lms,grahamb/canvas-lms,SwinburneOnline/canvas-lms,leftplusrightllc/canvas-lms,efrj/canvas-lms,jay3126/canvas-lms,gbleydon/canvas-lms,wrdsb/canvas-lms,narigone/canvas,antoniuslin/canvas-lms,antoniuslin/canvas-lms,AndranikMarkosyan/lms,eCNAP/CANVAS,sfu/canvas-lms