Added support for synchronous retries.
Counting the number of entities in an association no longer requires the entities to be fetched.