Complex sentence: Only five familes belonged to this class, all derived from Fujiwara no Michinaga.
Split into simpler sentences: Only five familes belonged to this class. All of them derived from Fujiwara no Michinaga.