Fixed issue which displayed wrong cound of json documents

Signed-off-by: Thomas Spycher <tspycher@zerodine.com>