Adds GetDataSourceCountQuery.