Quantification of within-flock