[Urgent] Post counter to the counter endpoint instead of value endpoint

Important fix for Java api.