A man reared cows and buffaloes. The number of buffaloes was 7 more than one-Third of the number of cows. What was the total number of animals, if the number of buffaloes was 21?