class Counters extends PostgresqlTableTemplate {

        public Counters() {
            super(new MysqlTables.Counters(TYPES_MAPPING));
        }

        public long getCounter(Session session, HugeType type) {
            MysqlTables.Counters table = (MysqlTables.Counters) this.template;
            return table.getCounter(session, type);
        }

        public void increaseCounter(Session session, HugeType type,
                                    long increment) {<FILL_FUNCTION_BODY>}
    }

            String update = String.format(
                    "INSERT INTO %s (%s, %s) VALUES ('%s', %s) " +
                    "ON CONFLICT (%s) DO UPDATE SET ID = %s.ID + %s;",
                    this.table(), formatKey(HugeKeys.SCHEMA_TYPE),
                    formatKey(HugeKeys.ID), type.name(), increment,
                    formatKey(HugeKeys.SCHEMA_TYPE),
                    this.table(), increment);
            try {
                session.execute(update);
            } catch (SQLException e) {
                throw new BackendException(
                        "Failed to update counters with type '%s'", e, type);
            }
        
<no_super_class>