# Count
{: .no_toc }

Returns the number of properties in the collection.

Syntax: *object*.**Count**

*object*
: *required* An object expression that evaluates to a **FileProperties** object.

**Count** returns a **Long** equal to the total number of shell properties available for the file. Different file types have different numbers of properties. Valid index values for [**Item**](/tB/Packages/Contributed/FileProps/FileProperties/Item.md) range from `0` to `Count - 1`.

### Example

This example opens a file and prints the total number of shell properties it exposes.

```tb check_build
Dim props As FileProperties
Set props = FilePropertyExplorer.OpenFile("C:\example.mp3")
Debug.Print "Property count: " & props.Count
```

### See Also

- [Item](/tB/Packages/Contributed/FileProps/FileProperties/Item.md) property
- [FilePath](/tB/Packages/Contributed/FileProps/FileProperties/FilePath.md) property
- [FileProperties](/tB/Packages/Contributed/FileProps/FileProperties/index.md) class
