Added get-flat-count.