I believe the latest version of Achilles already produces the source-concept record counts. The problem is that the achilles_result_concept_count script in Achilles does not create the source counts.
In 2.13 of WebAPI, we’ve introduced a script that will populate the achilles_result_concept_count with person counts and source code counts. Specifically, it pulls counts from the condition_source_concept_id, drug_source_concept_id, etc analyses and aggregates them.
If this table is populated from this script, Atlas/WebAPI will read from this table and produce the counts for the UI.