* A crown of pineapples (referencing the pineapple's crown)
* A bunch of pineapples (a common term for fruits)
* A harvest of pineapples (referencing the act of gathering them)
Ultimately, the best collective noun depends on the context and what you want to emphasize.