In Brouwer's book "Strongly regular graphs" he mentions in the subsection on Quadratic counting that for any vertex induced subgraph $U$ of some strongly regular graph $L$ on $u$ vertices and $e$ edges one can derive certain quantities form the number of vertices $x_i$ outside of $U$ having exactly $i$ neighbors in $U$. He defines the degree sequence in $U$ as $(d_1,...,d_u)$. In particular, he gives for a strongly regular graph with parameters $(n,k,\lambda,\mu)$ the identity
$$\sum_{i}\binom{i}{2}x_i = \lambda e + \mu\left(\binom{u}{2}-e\right)-\sum_{i=1}^{u}\binom{d_1}{2}.$$
I would like to interpret this in term in a graph theoretical way. $\lambda e$ may be linked to the triangles in $L$ but I am not sure how, $\left(\binom{u}{2}-e\right)$ is the number of edges of the complement of $U$ in the complete graph on $u$ vertices. This is not much and I am completely stuck for the remaining terms/term combinations...