kdb: fix incorrect counts in KDB summary command output