# Sandbox.MovieMaker.MovieTime.GetFrameCount

```csharp
int GetFrameCount(int frameRate)
```

Given a `frameRate`, how many frames would need to be allocated
to represent every moment of time up until now. This is always at least `1`,
and will be `1` more than [Sandbox.MovieMaker.MovieTime.GetFrameIndex](/api/Sandbox.MovieMaker.MovieTime/GetFrameIndex) unless this time
is exactly on a frame boundary.

### Parameters

- `frameRate` (`int`)

### Returns

`int`

Declared in [Sandbox.MovieMaker.MovieTime](/api/Sandbox.MovieMaker.MovieTime).
Assembly: `Sandbox.Engine`.
