Minecraft wiki entry for stats, associated text: To have the nearest wither skull update the scoreboard objective NumBlocks of fake player #FakePlayer with the number of blocks affected by commands executed by the wither skull:
stats entity @e[type=wither_skull,c=1] set AffectedBlocks #FakePlayer NumBlocks