Return task count by status for a story dynamically

Task status is no longer fixed but can be dynamically
configured. The count for task status on each story was
hardcoded, so updated that to count task status depending
on the task status provided.

Change-Id: If9d906f09e63584146b4f5e371a63a4156d6c16a
Merge "Return task count by status for a story dynamically"