Counts all mined blocks

Hi, is it possible to set up a scoreboard on singleplayer that counts all the blocks dug up?
Was this page helpful?