I can see what they mean: a train comes at 0, 5, 10, 15, 20, 25, 30 min, that's 7 in total.
Obviously, this is not how the line capacity should be calculated (their method includes the 0 min and 30 min trains into both the current 30-min period and the previous/next 30-min periods...