PAPER2UPaperTileSet::GetNumTerrains

Returns the number of terrains this tile set has.