How to count the node of content type for corresponding entity reference field
In Views, under Advanced, Use Aggregation - Yes.

Suppose you have content type A and B. B has entity reference field which refers A.
Now you have already created a view for content type A and added its relationship to B. 

Now under Fields, Add a new field of the content type B(suppose body), change the label to Count set its aggregation settings to count.