Skip to main content
Use this mapper to find out how many entries something contains. Given a list it returns the number of items; given a keyed object it returns the number of keys. The result is a single whole number, which is useful for things like recording how many lines an order has or how many images a product carries.

Fields

This mapper has no settings to fill in. It always counts whatever value it receives.

Sample data

This example counts the lines on an order. Input:
[
    { "sku": "SCARF-01" },
    { "sku": "BELT-02" },
    { "sku": "HAT-03" }
]
Output:
3
A keyed object such as { "color": "red", "size": "M" } returns 2, the number of keys, and an empty list returns 0.