<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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()