Find out how many events there are this week

Hi guys,

I create my own dashboard and it almost finish but need 1 thing. In 1 section, I created a slider to show 2 pieces of information. The 1st, how many shopping items I have on my list thanks to todo. The 2nd, I’d like to know the number of events for the week in Calendar, with something like “Hello, this week you have 10 events”.

How is it possible to get this feedback for the calendar?

Thank you