Measure to count number of subtasks of specific issue type per parent issue

Hi there,

I’m trying to create a report which will give me the number of subtasks of specific issue type per parent issue. In the screenshot below, I have the parent issue on the left-hand side. The first parent issue has 4 subtasks, of which 2 are of issue type Risk and 2 are of issue type Dependency. I would like to create measures which show how many subtasks of each subtask type there are per parent issue, i.e. 2 in Dependency Subtask column and 2 in Risk Subtask column.

I tried to use variations on code below, unfortunately I didn’t find anything that would work.
([Measures].[Sub-tasks created],
[Issue Type].[Dependency Subtask])

Help will be much appreciated!