db API add show_nested to stack_count_all

blueprint: list-nested
Change-Id: I38e3bcba2e75253a3e77fd31f9db103f3ebab7b6
Merge "db API add show_nested to stack_count_all"