Answer:
to keep herself entertained in bed, since she can't paint while she is sick. She counts the leaves to annoy Sue