changed countAllTriangleTypes to netCDF