Fred's barn started with 100 + 29 + 9 = <<100+29+9=138>>138 animals.
Brian bought half of these, so there were 138 / 2 = <<138/2=69>>69 remaining.
After Jeremy gifted Fred 37 goats, there were 69 + 37 = <<69+37=106>>106 animals in the barn.
So, 106 / 2 = <<106/2=53>>53 of these animals are male.
#### 53