Since each detail section (a - d) is referring to the same row of data or recordnumber, I think the only way to count them individually, e.g., detail_a = 1, detail_b = 2, etc., is to hard code the numbers, i.e., to add a text box containing the number into each section--but there's probably not much point in this. If you want to get a count across a series of detail sections, lets' say a - d, you could change the formula to:
WhilePrintingRecords;
NumberVar counter;
counter:=Counter+4;
counter;
This will give you for records 1 - 3:
4
4
4
4
8
8
8
8
12
12
12
12 //etc.
...which would be accurate on the last detail section for each recordnumber.
-LB