tscube, topdcube add count measure
refactor tscube