--- title: Count - GraphQL Admin description: Details for count of elements. api_version: unstable api_name: admin source_url: html: https://shopify.dev/docs/api/admin-graphql/unstable/objects/count md: https://shopify.dev/docs/api/admin-graphql/unstable/objects/count.md --- # Count object Details for count of elements. ## Fields * count [Int!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) non-null The count of elements. * precision [Count​Precision!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/CountPrecision) non-null The count's precision, or the exactness of the value. *** ## Map ### Fields with this object * {}[Article.commentsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Article#field-Article.fields.commentsCount) * {}[Blog.articlesCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.articlesCount) * {}[Channel.productsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Channel#field-Channel.fields.productsCount) * {}[Collection.availablePublicationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Collection#field-Collection.fields.availablePublicationsCount) * {}[Collection.resourcePublicationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Collection#field-Collection.fields.resourcePublicationsCount) * {}[Company.contactsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Company#field-Company.fields.contactsCount) * {}[Company.locationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Company#field-Company.fields.locationsCount) * {}[Company.ordersCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Company#field-Company.fields.ordersCount) * {}[CompanyLocation.catalogsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CompanyLocation#field-CompanyLocation.fields.catalogsCount) * {}[CompanyLocation.ordersCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CompanyLocation#field-CompanyLocation.fields.ordersCount) * {}[CompanyLocationCatalog.companyLocationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CompanyLocationCatalog#field-CompanyLocationCatalog.fields.companyLocationsCount) * {}[DeliveryProfile.productVariantsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DeliveryProfile#field-DeliveryProfile.fields.productVariantsCount) * {}[DiscountCodeApp.codesCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountCodeApp#field-DiscountCodeApp.fields.codesCount) * {}[DiscountCodeBasic.codesCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountCodeBasic#field-DiscountCodeBasic.fields.codesCount) * {}[DiscountCodeBxgy.codesCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountCodeBxgy#field-DiscountCodeBxgy.fields.codesCount) * {}[DiscountCodeFreeShipping.codesCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountCodeFreeShipping#field-DiscountCodeFreeShipping.fields.codesCount) * {}[FulfillmentOrderLocationForMove.availableLineItemsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/FulfillmentOrderLocationForMove#field-FulfillmentOrderLocationForMove.fields.availableLineItemsCount) * {}[FulfillmentOrderLocationForMove.unavailableLineItemsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/FulfillmentOrderLocationForMove#field-FulfillmentOrderLocationForMove.fields.unavailableLineItemsCount) * {}[InventoryShipment.lineItemsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryShipment#field-InventoryShipment.fields.lineItemsCount) * {}[InventoryTransfer.lineItemsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryTransfer#field-InventoryTransfer.fields.lineItemsCount) * {}[Market.catalogsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Market#field-Market.fields.catalogsCount) * {}[MarketCatalog.marketsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MarketCatalog#field-MarketCatalog.fields.marketsCount) * {}[Order.fulfillmentsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Order#field-Order.fields.fulfillmentsCount) * {}[Order.transactionsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Order#field-Order.fields.transactionsCount) * {}[Product.availablePublicationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product#field-Product.fields.availablePublicationsCount) * {}[Product.productComponentsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product#field-Product.fields.productComponentsCount) * {}[Product.resourcePublicationsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product#field-Product.fields.resourcePublicationsCount) * {}[Product.sellingPlanGroupsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product#field-Product.fields.sellingPlanGroupsCount) * {}[Product.variantsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Product#field-Product.fields.variantsCount) * {}[ProductBundleComponent.componentVariantsCount](https://shopify.dev/docs/api/admin-graphql/unstable/objects/ProductBundleComponent#field-ProductBundleComponent.fields.componentVariantsCount) *** ## Queries * [abandoned​Checkouts​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/abandonedCheckoutsCount) query Returns the count of abandoned checkouts for the given shop. Limited to a maximum of 10000 by default. * [blogs​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/blogsCount) query Count of blogs. Limited to a maximum of 10000 by default. * [catalogs​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/catalogsCount) query The count of catalogs belonging to the shop. Limited to a maximum of 10000 by default. * [collections​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/collectionsCount) query Count of collections. Limited to a maximum of 10000 by default. * [companies​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/companiesCount) query The number of companies for a shop. Limited to a maximum of 10000 by default. * [customers​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/customersCount) query The number of customers. Limited to a maximum of 10000 by default. * [customer​Segment​Members​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/customerSegmentMembersCount) query Returns the total number of customers who match the criteria defined in a customer segment. This count provides real-time visibility into segment size for targeting and analysis purposes. For example, check the size of a "High-Value Customers" segment before launching a VIP program. The count reflects current segment membership based on the segment's filter criteria, updating as customer data changes and new customers meet or no longer meet the segment conditions. * [discount​Codes​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/discountCodesCount) query The total number of discount codes for the shop. Limited to a maximum of 10000 by default. * [discount​Nodes​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/discountNodesCount) query The total number of discounts for the shop. Limited to a maximum of 10000 by default. * [draft​Orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/draftOrdersCount) query Returns the number of draft orders that match the query. Limited to a maximum of 10000 by default. * [events​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/eventsCount) query Count of events. Limited to a maximum of 10000. * [gift​Cards​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/giftCardsCount) query The total number of gift cards issued for the shop. Limited to a maximum of 10000 by default. * [locations​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/locationsCount) query Returns the count of locations for the given shop. Limited to a maximum of 10000 by default. * [menus​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/menusCount) query Count of menus. * [orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/ordersCount) query Returns the count of orders for the given shop. Limited to a maximum of 10000 by default. * [pages​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/pagesCount) query Count of pages. Limited to a maximum of 10000 by default. * [pending​Orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/pendingOrdersCount) query The number of pendings orders. Limited to a maximum of 10000. * [products​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/productsCount) query Count of products. Limited to a maximum of 10000 by default. * [product​Variants​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/productVariantsCount) query Count of product variants. Limited to a maximum of 10000 by default. * [publications​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/publicationsCount) query Count of publications. Limited to a maximum of 10000 by default. * [published​Products​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/publishedProductsCount) query Returns a count of published products by publication ID. Limited to a maximum of 10000 by default. * [segments​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/segmentsCount) query The number of segments for a shop. Limited to a maximum of 10000 by default. * [url​Redirects​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/urlRedirectsCount) query Count of redirects. Limited to a maximum of 10000 by default. * [webhook​Subscriptions​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/webhookSubscriptionsCount) query The count of webhook subscriptions. Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your `shopify.app.toml` may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read [About managing webhook subscriptions](https://shopify.dev/docs/apps/build/webhooks/subscribe). Limited to a maximum of 10000 by default. *** ## \Count Queries ### Queried by * \[abandoned​Checkouts​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/abandonedCheckoutsCount) * \[blogs​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/blogsCount) * \[catalogs​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/catalogsCount) * \[collections​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/collectionsCount) * \[companies​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/companiesCount) * \[customers​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/customersCount) * \[customer​Segment​Members​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/customerSegmentMembersCount) * \[discount​Codes​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/discountCodesCount) * \[discount​Nodes​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/discountNodesCount) * \[draft​Orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/draftOrdersCount) * \[events​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/eventsCount) * \[gift​Cards​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/giftCardsCount) * \[locations​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/locationsCount) * \[menus​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/menusCount) * \[orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/ordersCount) * \[pages​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/pagesCount) * \[pending​Orders​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/pendingOrdersCount) * \[products​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/productsCount) * \[product​Variants​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/productVariantsCount) * \[publications​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/publicationsCount) * \[published​Products​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/publishedProductsCount) * \[segments​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/segmentsCount) * \[url​Redirects​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/urlRedirectsCount) * \[webhook​Subscriptions​Count](https://shopify.dev/docs/api/admin-graphql/unstable/queries/webhookSubscriptionsCount)