Converting cumulative data to difference



In the following table, I want to change the 'count' column from cumulative to differences. So instead 20, 20, 30, 30, 30... I want it to be 20, 0, 10, 0, 0... It would be great to know what's the best way to do it. Thanks!