message: return count value
diff: @@ -363,7 +363,7 @@ export class PgDataStore implements DataStore {
  public async getIpv6Counter(): Promise<number> {
  const res = await this.pgPool.query("SELECT count FROM ipv6_counter");
  - return res ? res.rows[0].count : 0;
  + return res ? parseInt(res.rows[0].count, 10) : 0;
  }
  public async setIpv6Counter(counter: number): Promise<void> {
  @@ -523,7 +523,7 @@ export class PgDataStore implements DataStore {
  const res = await this.pgPool.query("SELECT COUNT(*) FROM client_config " +
  "WHERE domain = $2 AND config->>'username' LIKE $1",
  [`${usernamePrefix}%`, domain]);
  - return res.rows[0];
  + return parseInt(res.rows[0].count, 10);
  }
  public async roomUpgradeOnRoomMigrated(oldRoomId: string, newRoomId: string) {
  