Add counts(with migration) on DataQuery