Adds missing initialization for input and output entry counts in the per_shard data structure.
Issue: #5675