$$\begin{array}{|c|c c c c c c c c|}
\hline
&1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\
\hline
I_1&\text{F}&\text{D} &\text{E} &\text{M} &\textbf{W} & & & \\
I_2&&\text{F} &\boxed{\text{D}} &\text{E} &\text{M} &\textbf{W} & & \\
I_3&& &\text{F} &\boxed{\text{D}} &\text{E} &\text{M} &\text{W} & \\
I_4&& & & \text{F} &\boxed{\text{D}} &\text{E} &\text{M} &\text{W} \\
\hline
\end{array}$$
RAW (Read After Write) Dependencies are: $I_1\rightarrow I_2,I_1\rightarrow I_3,I_1 \rightarrow I_4,I_2 \rightarrow I_4.$
Of these $4$ dependencies, only $I_1 \rightarrow I_4$ is not a hazard, as the order of R/W here follows the same as in a non-pipelined sequential execution. ($W$ of $I_1$ is happening in first phase of the cycle and $R$ of $I_4$ is happening in the second phase). Thus, we have $3$ RAW hazards here. So, $A = 3.$
The given pipeline is the simplistic one -- where each stage is used only for one cycle -- and in such a pipeline with inorder execution we can never have WAR or WAW hazards. So, $B = C = 0.$
Thus, $A +B+C = 3.$