I have two content types A and B. The content type B has a node reference to A.
I would like to create a views list which show nodes of A with no. of node count of B.
It is very similar to a list of nodes which comment count for each.
I am not too up on D7, but the Nodereference Count module has worked for me in D6 and there appears to be a D7 version.
I've done something similar 2 weeks ago. Basically you need to use a setting called Use aggregation, which can be found in the Views Advanced tab. By enabling it, you will have extra "Aggregation settings" for each field, where you can choose between (COUNT, COUNT DISTINCT, SUM, AVERAGE, etc.). A possible workflow would be:
- Enable aggregation (Views Advanced tab --> Use aggregation).
- Use a relationship (in your case the node reference field).
Content: Nidfield and make it use the relationship.
- Change the Aggregation Settings for the
Content: Nidfield to COUNT
That should be all!