Add querying for count and days