attempt to refactor AbstractMetricWriter and UniqueCountMetricWriter
remove adding separator which will cause a bug
add separator at appopriate places