improve ranges-table to work with nested docs
simple component to report a count