Adding header to output

- Also, rename from countToValue to valueToCount