[Helpers][Data-Grid] Reworked support for SQL joined counts.