Table:
0
A
B
C
D
1
department id
head id
temporary acting
management
2
2
5
Yes
3
15
4
Yes
4
2
6
Yes
5
7
3
No
6
11
10
No

Questions and formulas:
Question: How many acting statuses are there?
Formula: ROWS(FILTER(A1:D1, C1="Yes"))
Formula2: ROWS(FILTER(A2:D6, C2:C6="Yes"))
Level: easy