analytics: Fix count_stream_by_realm.
analytics: Fix count_stream_by_realm.

Add a join clause on zerver_message in count_stream_by_realm,
otherwise we only output the final total streamcount for a realm
for every time entry.

TigorC/zulip,eeshangarg/zulip,andersk/zulip,jackrzhang/zulip,verma-varsha/zulip,dattatreya303/zulip,Diptanshu8/zulip,brockwhittaker/zulip,timabbott/zulip,samatdav/zulip,punchagan/zulip,hackerkid/zulip,jphilipsen05/zulip,dattatreya303/zulip,sharmaeklavya2/zulip,zacps/zulip,blaze225/zulip,PhilSk/zulip,dhcrzf/zulip,sharmaeklavya2/zulip,blaze225/zulip,Juanvulcano/zulip,shubhamdhama/zulip,niftynei/zulip,ryanbackman/zulip,isht3/zulip,Jianchun1/zulip,jphilipsen05/zulip,verma-varsha/zulip,arpith/zulip,jainayush975/zulip,zulip/zulip,niftynei/zulip,zacps/zulip,ryanbackman/zulip,zacps/zulip,AZtheAsian/zulip,reyha/zulip,punchagan/zulip,AZtheAsian/zulip,rht/zulip,jrowan/zulip,vaidap/zulip,verma-varsha/zulip,synicalsyntax/zulip,ryanbackman/zulip,PhilSk/zulip,zulip/zulip,shubhamdhama/zulip,punchagan/zulip,andersk/zulip,calvinleenyc/zulip,jainayush975/zulip,samatdav/zulip,verma-varsha/zulip,dattatreya303/zulip,niftynei/zulip,JPJPJPOPOP/zulip,JPJPJPOPOP/zulip,SmartPeople/zulip,jainayush975/zulip,punchagan/zulip,dhcrzf/zulip,isht3/zulip,j831/zulip,christi3k/zulip,synicalsyntax/zulip,j831/zulip,SmartPeople/zulip,timabbott/zulip,amanharitsh123/zulip,susansls/zulip,rishig/zulip,rht/zulip,AZtheAsian/zulip,dhcrzf/zulip,KingxBanana/zulip,amanharitsh123/zulip,arpith/zulip,joyhchen/zulip,synicalsyntax/zulip,showell/zulip,eeshangarg/zulip,souravbadami/zulip,calvinleenyc/zulip,amyliu345/zulip,tommyip/zulip,andersk/zulip,AZtheAsian/zulip,kou/zulip,vaidap/zulip,brainwane/zulip,rht/zulip,rht/zulip,cosmicAsymmetry/zulip,vaidap/zulip,sonali0901/zulip,Diptanshu8/zulip,jrowan/zulip,paxapy/zulip,niftynei/zulip,zacps/zulip,dattatreya303/zulip,showell/zulip,eeshangarg/zulip,zulip/zulip,sonali0901/zulip,rishig/zulip,Juanvulcano/zulip,joyhchen/zulip,joyhchen/zulip,dhcrzf/zulip,vabs22/zulip,mahim97/zulip,souravbadami/zulip,ryanbackman/zulip,hackerkid/zulip,andersk/zulip,amyliu345/zulip,Juanvulcano/zulip,amanharitsh123/zulip,brockwhittaker/zulip,aakash-cr7/zulip,verma-varsha/zulip,vabs22/zulip,aakash-cr7/zulip,Galexrt/zulip,showell/zulip,isht3/zulip,arpith/zulip,synicalsyntax/zulip,j831/zulip,TigorC/zulip,sharmaeklavya2/zulip,hackerkid/zulip,KingxBanana/zulip,KingxBanana/zulip,susansls/zulip,dawran6/zulip,sonali0901/zulip,brockwhittaker/zulip,showell/zulip,vikas-parashar/zulip,hackerkid/zulip,mahim97/zulip,joyhchen/zulip,peguin40/zulip,PhilSk/zulip,SmartPeople/zulip,dawran6/zulip,rishig/zulip,souravbadami/zulip,jrowan/zulip,zulip/zulip,peguin40/zulip,SmartPeople/zulip,brockwhittaker/zulip,TigorC/zulip,grave-w-grave/zulip,blaze225/zulip,Diptanshu8/zulip,tommyip/zulip,SmartPeople/zulip,cosmicAsymmetry/zulip,paxapy/zulip,kou/zulip,niftynei/zulip,KingxBanana/zulip,vaidap/zulip,isht3/zulip,PhilSk/zulip,andersk/zulip,susansls/zulip,isht3/zulip,Galexrt/zulip,rishig/zulip,synicalsyntax/zulip,grave-w-grave/zulip,brainwane/zulip,arpith/zulip,jackrzhang/zulip,amyliu345/zulip,dhcrzf/zulip,amanharitsh123/zulip,vaidap/zulip,rishig/zulip,ryanbackman/zulip,dhcrzf/zulip,AZtheAsian/zulip,Galexrt/zulip,amyliu345/zulip,TigorC/zulip,Jianchun1/zulip,shubhamdhama/zulip,grave-w-grave/zulip,Galexrt/zulip,dattatreya303/zulip,tommyip/zulip,calvinleenyc/zulip,JPJPJPOPOP/zulip,timabbott/zulip,rht/zulip,christi3k/zulip,paxapy/zulip,jrowan/zulip,ryanbackman/zulip,vikas-parashar/zulip,dhcrzf/zulip,cosmicAsymmetry/zulip,jphilipsen05/zulip,cosmicAsymmetry/zulip,brainwane/zulip,TigorC/zulip,eeshangarg/zulip,grave-w-grave/zulip,Galexrt/zulip,showell/zulip,calvinleenyc/zulip,jainayush975/zulip,brainwane/zulip,shubhamdhama/zulip,sharmaeklavya2/zulip,blaze225/zulip,paxapy/zulip,zulip/zulip,aakash-cr7/zulip,SmartPeople/zulip,amanharitsh123/zulip,Galexrt/zulip,amyliu345/zulip,brainwane/zulip,sonali0901/zulip,brockwhittaker/zulip,kou/zulip,eeshangarg/zulip,samatdav/zulip,reyha/zulip,Galexrt/zulip,tommyip/zulip,synicalsyntax/zulip,calvinleenyc/zulip,timabbott/zulip,kou/zulip,jrowan/zulip,mahim97/zulip,dattatreya303/zulip,timabbott/zulip,TigorC/zulip,eeshangarg/zulip,mahim97/zulip,kou/zulip,grave-w-grave/zulip,jainayush975/zulip,arpith/zulip,reyha/zulip,dawran6/zulip,amanharitsh123/zulip,PhilSk/zulip,cosmicAsymmetry/zulip,kou/zulip,dawran6/zulip,susansls/zulip,shubhamdhama/zulip,rishig/zulip,j831/zulip,Diptanshu8/zulip,dawran6/zulip,reyha/zulip,Juanvulcano/zulip,JPJPJPOPOP/zulip,grave-w-grave/zulip,zulip/zulip,christi3k/zulip,timabbott/zulip,samatdav/zulip,Jianchun1/zulip,Juanvulcano/zulip,shubhamdhama/zulip,reyha/zulip,vikas-parashar/zulip,synicalsyntax/zulip,amyliu345/zulip,peguin40/zulip,punchagan/zulip,jphilipsen05/zulip,rishig/zulip,punchagan/zulip,peguin40/zulip,jrowan/zulip,showell/zulip,brainwane/zulip,souravbadami/zulip,mahim97/zulip,vabs22/zulip,christi3k/zulip,jackrzhang/zulip,zulip/zulip,peguin40/zulip,KingxBanana/zulip,verma-varsha/zulip,brockwhittaker/zulip,vabs22/zulip,dawran6/zulip,sonali0901/zulip,tommyip/zulip,jackrzhang/zulip,hackerkid/zulip,JPJPJPOPOP/zulip,andersk/zulip,souravbadami/zulip,jphilipsen05/zulip,brainwane/zulip,showell/zulip,j831/zulip,Jianchun1/zulip,christi3k/zulip,eeshangarg/zulip,vabs22/zulip,hackerkid/zulip,sonali0901/zulip,susansls/zulip,Jianchun1/zulip,AZtheAsian/zulip,samatdav/zulip,paxapy/zulip,Juanvulcano/zulip,jphilipsen05/zulip,jainayush975/zulip,sharmaeklavya2/zulip,aakash-cr7/zulip,paxapy/zulip,joyhchen/zulip,arpith/zulip,blaze225/zulip,JPJPJPOPOP/zulip,blaze225/zulip,kou/zulip,tommyip/zulip,shubhamdhama/zulip,isht3/zulip,Jianchun1/zulip,timabbott/zulip,susansls/zulip,jackrzhang/zulip,hackerkid/zulip,peguin40/zulip,sharmaeklavya2/zulip,jackrzhang/zulip,rht/zulip,joyhchen/zulip,Diptanshu8/zulip,aakash-cr7/zulip,PhilSk/zulip,cosmicAsymmetry/zulip,j831/zulip,jackrzhang/zulip,andersk/zulip,tommyip/zulip,Diptanshu8/zulip,vikas-parashar/zulip,KingxBanana/zulip,mahim97/zulip,zacps/zulip,vaidap/zulip,vikas-parashar/zulip,niftynei/zulip,vikas-parashar/zulip,reyha/zulip,vabs22/zulip,christi3k/zulip,punchagan/zulip,samatdav/zulip,rht/zulip,souravbadami/zulip,calvinleenyc/zulip,aakash-cr7/zulip,zacps/zulip