You can count records in Flow by:
Using the Get Records element to retrieve all Contact records with MailingCity = "Sydney".
Using a number variable with an Assignment element to increment the count.
Alternatively, you can use a Collection Variable and use {!CollectionVariable.size} to get the total count.
C. Correct — This method allows counting records using declarative tools only (Flow), without any code.
Incorrect Options:
A. Process Builder does not support direct counting or looping logic.
B. Apex is not required; the use case can be handled declaratively.
D. "for()" loops are part of Apex and not available in Flow Builder.
Reference Extracts from Salesforce Process Automation Study Guide:
“Use Flow’s Get Records element to retrieve data and store it in a collection variable. Use the collection’s .size property to get the count.”
“Loops and assignment logic can be used to increment counters if needed.”
=========================================================
Submit