"item d" is painted 3 times while the rest of the items are painted once.
item a
item b
item c
item d
item e