Half of the cows: 18/2=<<18/2=9>>9
Black cows: 5+9=<<5+9=14>>14
18-14=<<18-14=4>>4 cows
#### 4