countRegisterData

abstract suspend fun countRegisterData(registerId: String, fhirResourceConfig: FhirResourceConfig? = null, paramsMap: Map<String, String>? = emptyMap()): Long

This function uses the provided registerId to retrieve the register configuration from the registry, then proceeds to count the data based on the configured query parameters