--- title: "count values in list()" slug: "basic-count-elements-in-list" updated: 2026-08-11T07:54:57Z published: 2026-08-11T07:54:57Z canonical: "docs.lobstersoftware.com/basic-count-elements-in-list" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # count values in list() Returns the number of elements in list **a**. ## Parameters | Parameter | Description | | --- | --- | | a | (optional) Name of the list. Default: "default". | ## Examples Defined is a list "myList" with three elements. | Parameter a | Result | | --- | --- | | myList | 3 | | myOtherList | 0 |