Add ListTaskCount method to client.