Update beer.c

count_lines add func