Count the number of pixels rendered on this line.

def _count_pixels_on_line(self, y, p):
        """Count the number of pixels rendered on this line."""
        h = line(y, self._effective_thickness(p), 0.0)
        return h.sum()