initial implementation of faceted view - added stats for top-level and 2nd-level facets