also calculate the number of brands