Fix error count for stack-list while show deleted

1.The count for stack-list is incorrect while show deleted.
  The count should include the deleted ones.
2.We should check the value of 'with_count', if the value
  is invalid, we should raise ValueError.

Change-Id: Ie1eef7a7ec63870ac28929bcadcd917bbc8d3203
Closes-bug: #1331383
Add missing DeprecationWarning category to warning

This is a deprecation warning but it lacks the category specifier
for DeprecationWarning.

Change-Id: I4f31c2cd64b94564ff53d944cae36bff472491d4
Merge "Fix error count for stack-list while show deleted"
Merge "Add missing DeprecationWarning category to warning"