The joke is a pun.  'Rounding up' something has two meanings.  One meaning is to gather up animals in a herd.  The other meaning is to round up a number to a bigger unit in mathematics, for example rounding 1.5 to 2.0.
I know a rancher who has 100 head of cattle , but he thought there were only 99 until he rounded them up .