add a script to generate dataset count