Count total number diary tasks

Hi
In my diary I use in my work diferents tasks group by in diferents files called proyects.
The format task i use is

  • #task1 #task2 #task3 I consider these tags contexts

Every day I complete my tasks by doing different queries with the plugin dataview staying like this.

  • task completed #task1:white_check_mark: 2023-08-22

if i want to check the daily tasks I’ve completed today i use the following query.

TASK
WHERE completion = date("2023-08-22")

Following this criteria, how can I count all the total tasks that I have completed on a specific day?
Also, how could I count them, grouping them by my contexts?

Thanks in advance.

erjuak