{exp:playa:total_children}

You can use the {exp:playa:total_children} tag to get the total number of entries related by Playa fields.

Tag Parameters

{exp:playa:total_children} supports almost all of {exp:channel:entries}tag parameters, as well as the following:

entry_id
The parent entry’s ID(s). If your tag is within an {exp:channel:entries} tag pair, this will default to the current entry’s ID.
child_id
The child entry ID(s) to include. Prefix with “not” to define entries to exclude instead.
field
The Playa field’s name where the relationship was made, or the Matrix field’s name if your Playa field lives within a Matrix field.
field_id
The Playa field’s ID where the relationship was made, or the Matrix field’s ID if your Playa field lives within a Matrix field.
col
The Matrix column’s name where the relationship was made.
col_id
The Matrix column’s ID where the relationship was made.
row_id
The Matrix row’s ID where the relationship was made.
var
The Low Variables variable’s name where the relationship was made.
var_id
The Low Variables variable’s ID where the relationship was made.