I've found the solution in Hartshorne's book Deformation Theory on p. 183. I formulate the solution for an arbitrary nodal curve $C$ consisting of irreducible compontents $C_i \cong \mathbb P^1$.
Let $S$ be the set of singular points in $C$. Locally $C$ around each node in $S$ the curve looks like $(xy=0) \subset \mathbb A^2$. Hence, locally, $T_C = xT_D \oplus yT_{D'}$, where $D, D'$ are the components through the chosen node. It follows, globally, we have $$ T_C \cong \bigoplus_{C_i \subset C} (\mathcal I_{S\cap C_i} \otimes T_{C_i}), $$ where $\mathcal I_{S\cap C_i}$ is the sheaf of ideals in $\mathcal O_{C_i}$ which defines the closed subscheme $S \cap C_i$ of $C_i$ consisting of nodes in $C_i$. Now $h^0(C_i, \mathcal I_{S\cup C_i} \otimes T_{C_i}) = max(3 - \\#(S\cap C_i), 0)$ which follows from $C_i \cong \mathbb P^1$.
So the answer in the case of the above curve is $h^0 = 8$.