You could easily do this with a manual crosstab by creating two formulas to be placed in the details section:
//{@MTD}:
if {table.date} in MonthToDate then 1 //or then {table.amt}
//{@YTD}:
if {table.date} in YearToDate then 1 //or then {table.amt}
Insert a group (that results in X or Y), and then right click on each formula and insert a summary (sum, not count).
Drag the group name to the group footer, and then suppress the details section.
-LB