I drew a picture to help figure it out.
It turns out the answer is somewhere around six. Six bites of chocolate cake will maximize gratitude (and pleasure) while minimizing regret. Additionally worth noting, you’re better off having zero bites than you are sixteen.