> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Resource: Items # Type: WixDataResult # Property: totalCount # Link: https://dev.wix.com/docs/sdk/business-solutions/data/items/wix-data-result/total-count.md ## Description: Returns the total number of items that match the query. The `totalCount` returns the total number of items that match the query, not just the number of items in the current page. > **Note:** This property is only available when the query's `options.returnTotalCount` parameter is set to `true`. ## Examples: ## Perform a query and get the number of items in the result ```javascript import { items } from "@wix/data"; async function queryResultTotalCount() { const options = { returnTotalCount: true }; const results = await items .query("myCollection") .find(options); console.log(results.totalCount); // 150 } ``` ## Perform a query and get the number of items in the result: Self-hosted ```javascript import { createClient } from "@wix/sdk"; import { items } from "@wix/data"; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const wixClient = createClient({ modules: { items }, // Include the auth strategy and host as relevant }); async function queryResultTotalCount() { const options = { returnTotalCount: true }; const results = await wixClient.items .query("myCollection") .find(options); console.log(results.totalCount); // 150 } ``` --- ## Schema: ```json Type: | type: number ```