Fix slave object

Added task count fields to slave state object.