We have several Markdown fields on the Service Contract screen. We are able to show messages to users and display or hide the markdown fields based on the values in the primary entity.
We would like to display a markdown notification to the user if data is missing in the sub entities of the service contract.
For example, we want the message to show the if the count of the services on the contract is less than two.

In the help page, it seems to suggest that the api.count function is only for the main entity set - has anyone had a similar requirement and been able to get a count of a sub-entity to influence the page design in this way?