* whole - This is a free morpheme, meaning it can stand alone as a word.
* heart - Another free morpheme.
* -ed - This is a bound morpheme, a suffix that indicates past tense. It can't stand alone as a word.
* -ly - This is also a bound morpheme, a suffix that indicates an adverb.
Therefore, "wholeheartedly" has four morphemes.