# getTaskCount

### Description

@short: Gets the number of tasks that are currently loaded in the gantt

@signature: getTaskCount: () =\> number

### Returns
- ` count` - (number) - the number of tasks in the schedule

### Example

~~~jsx
gantt.getTaskCount();
~~~

### Related API
- [getVisibleTaskCount](api/method/getvisibletaskcount.md)

