---
tags:
    - "Loop"
    - "Foreach"
    - "Iteration"
    - "Count"
    - "Length"
    - "Size"
    - "Total"
    - "Amount"
---

# Loop Count

[Parameters](index.md) / **Loop Count**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The amount of entries of the collection being iterated

## Code

```cs
using System;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [ScopeByParameter(ArgsCollectionParameters.PARAMETER_COLLECTION_COUNT)]

    [Title("Loop Count")]
    [Category("Parameters/Loop Count")]

    [Description("The amount of entries of the collection being iterated")]
    [Image(typeof(IconTally), ColorTheme.Type.Teal, typeof(BadgeLoop))]

    [Keywords("Loop", "Foreach", "Iteration", "Count", "Length", "Size", "Total", "Amount")]

    [Serializable]
    public class TypeNumberLoopParameterCount : TypeNumber
    {
        public override double Get(Args args)
        {
            return ArgsCollectionParameters.GetCount(args);
        }

        public override string ToString()
        {
            return "Loop Count";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.None;
    }
}

```

