ComfyUI > Nodes > ComfyUI Level Pixel > Count Objects [LP]

ComfyUI Node: Count Objects [LP]

Class Name

CountObjects|LP

Category
LevelPixel/Image
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Count Objects [LP] Description

Efficiently counts objects in input to determine list size or verify object presence.

Count Objects [LP]| Count Objects [LP]:

The CountObjects| Count Objects [LP] node is designed to efficiently count the number of objects within a given input. This node is particularly useful when you need to determine the size or length of a list or to simply verify the presence of an object. It provides a straightforward method to quantify elements, which can be beneficial in various scenarios, such as processing image data or managing collections of items. By leveraging this node, you can easily integrate object counting into your workflow, enhancing your ability to manage and manipulate data sets effectively.

Count Objects [LP]| Count Objects [LP] Input Parameters:

input

The input parameter is the primary data source for the node. It accepts any type of input, which can be a single object or a list of objects. The node will determine the count based on the type of input provided. If the input is a list, the node will count the number of elements within the list. If it is a single object, the count will be one. This flexibility allows the node to adapt to various data structures, making it versatile for different use cases.

base_value

The base_value parameter is an integer that serves as the starting point for the count. It has a default value of 0 and a minimum value of 0, ensuring that the count does not start from a negative number. This parameter allows you to add a predefined number to the count of objects, which can be useful if you need to account for additional elements or adjust the count based on specific requirements.

Count Objects [LP]| Count Objects [LP] Output Parameters:

INT

The output of the CountObjects| Count Objects [LP] node is an integer representing the total count of objects. This count is the sum of the base_value and the number of objects determined from the input. The output provides a clear and concise representation of the total number of elements, which can be used for further processing or analysis in your workflow.

Count Objects [LP]| Count Objects [LP] Usage Tips:

  • Use the base_value parameter to adjust the starting count if you need to account for additional elements not included in the input.
  • Ensure that the input is correctly formatted as a list if you want to count multiple objects, as the node will treat non-list inputs as a single object.

Count Objects [LP]| Count Objects [LP] Common Errors and Solutions:

Input is None

  • Explanation: This error occurs when the input parameter is not provided or is set to None.
  • Solution: Ensure that you provide a valid input, either as a single object or a list of objects, to avoid this error.

Invalid Base Value

  • Explanation: This error might occur if the base_value is set to a negative number, which is not allowed.
  • Solution: Check that the base_value is set to a non-negative integer, as the minimum allowed value is 0.

Count Objects [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Count Objects [LP]