move dataset count update into its own method
move dataset count update into its own method

theodi/open-data-certificate,ahmadassaf/open-data-certificate,ahmadassaf/open-data-certificate,theodi/open-data-certificate,ahmadassaf/open-data-certificate,theodi/open-data-certificate,ahmadassaf/open-data-certificate,theodi/open-data-certificate