YH-637: fix duplicate dataset counts
YH-637: restore search funtionality to button
YH-620: refactor dataset count query