Five gallons sounds like a lot. Can I brew a smaller batch?

Yes, but since the amount of work is the same, most brewers end up staying with five gallon batches or even moving to larger size batches. And the shelf-life of a homebrewed beer is actually longer than most commercial beers. The beer will still be quite drinkable as much as year after you’ve brewed it.