so he gathered together all that he owned , which was n't much , and counted out his money , which also was n't much , and decided to walk with his dog to the nearest town , some twenty miles away , to buy a pig .