TerrainData.treeInstanceCount

Switch to Manual
public int treeInstanceCount ;

Description

Returns the number of tree instances.