Fix total counts for tasks.

Change-Id: I96bc12086d95874f0efed973f2e7db0df5ea9e1a