Integer triangles and inclusion–exclusion principle