On Main page of Routine page in the upper left corner in blue font there is something like (5/31)

If I click a particular day I see (7/40)

I have 5 days so maybe the 5 in (5/31) is days. What is the 31?
For the particular days the first number I think is # of exercises. What is the 40?

Thanks.