Show a count from a table
A dashboard is an app that reads a table. Use the list_posts action from the database page, or the same pattern with your table name.
const listed = await Orbi.action("list_posts", {})
const rows = listed.output || []
document.body.textContent = rows.length + " rows"You should see the count in the preview. Zero means the table is empty or the action read a different table. Open that table under Data and check the rows before you change the markup.
If this fails: The count is zero
list_posts must exist and must return rows in output. A zero count means the table is empty or the action selected a different table. Open that table under Data and confirm the rows.