---
url: /flow/guide/scripting-reference/classes/tstringlist/tstringlist.count.md
---

# TStringList.Count

## Declaration

`property Count: Integer;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
var MyStringList : TStringList
i : integer
begin
MyStringList := TStringList.create; //create a reference to a string list object
  for i := 0 to MyStringList.Count-1 do
LogInfo(MyStringList[i]); //log each string in the list
end;
```

## Description

Returns the number of strings currently stored in the TStringList object.
