title: Get number of partitions in PostgreSQL database
body: <p>What is the most efficient way to get the number of partitions created in the database?</p>
  <p>I am using <strong>PostgreSQL</strong> API for C++.</p>