Stat dataset via pipeline(use mongo aggregation syntax)