Yes. the target function agrees with D and there are 8 of them.

Now we want to determine the hypothesis that agrees the most with the possible target functions.

Problem 6 defines this measurement as counting how many of the target functions match with each hypothesis on the three points.