Added KB data count queries.