title: Rails + Postgres: How to select count of how many records are updated or inserted?
body: <p>So I have an update statement:</p>
  
  <pre><code>UPDATE billing_infos set card_number = ''
  FROM orders
  WHERE billing_infos.order_id = orders.id ...);`
  </code></pre>
  
  <p>How would I find the count of how many records are updated by this statement?</p>
  
  <p>I'm doing this in my console through <code>ActiveRecord::Base.connection.execute()</code> so it's just returning a <code>&lt;PG::Result:0x007f9c99ef0370&gt;</code> object.</p>
  
  <p>Anyone know how I could do this using SQL or a Rails method?</p>