Add handling of "print node count" for JSON