simple word count example using flex/bison parser