title: How do I get total number of columns received in RestAPI response?
body: <p><a href="https://i.stack.imgur.com/mP26A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mP26A.png" alt="Example Response From RestAPI" /></a></p>
  <p><strong>This Is How My Current Parameter Input Looks Like:</strong></p>
  <pre><code>value={data?.body?.marketState}
  </code></pre>
  <p><strong>I want to return no. of columns in &quot;<em>marketState</em>&quot;.</strong></p>
  <p>eg.</p>
  <pre><code>4
  </code></pre>