analytics: Add user-level count query for messages sent to {PMs, streams}.
analytics: Add user-level count query for messages sent to {PMs, streams}.

Adds a count_X_by_Y_query to counts.py, similar in spirit to a
count_recipient_by_user query, where we would join on the Message,
Recipient, and UserProfile table. Here, we also join on the Stream table in
order to distinguish private and public streams, and we merge the counts for
PM and Huddle type messages into a single subgroup.

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