Hadoop OutputFormat for upserting counters to the MongoDB