Word Problems K5I once saw a line of elves. There were three elves behind an elf, three elves in front of an elf, and two elves in the middle.

What is the smallest number of elves there could have been?