The quantity of Barr bodies within a somatic cell is determined by: Number of Barr bodies = (Number of X chromosomes) - 1. Given a 47,XXXX karyotype, the individual possesses 4 X chromosomes. Therefore, the calculation is: Number of Barr bodies = 4 - 1 = 3.