[BEAM-7475] update wordcount example (#8803)
[BEAM-7475] update wordcount example (#8803)

* BEAM-7475: Updated wordcount example with code snippet

apache/beam,apache/beam,lukecwik/incubator-beam,markflyhigh/incubator-beam,chamikaramj/beam,RyanSkraba/beam,markflyhigh/incubator-beam,RyanSkraba/beam,robertwb/incubator-beam,lukecwik/incubator-beam,apache/beam,apache/beam,RyanSkraba/beam,chamikaramj/beam,chamikaramj/beam,lukecwik/incubator-beam,markflyhigh/incubator-beam,RyanSkraba/beam,robertwb/incubator-beam,markflyhigh/incubator-beam,lukecwik/incubator-beam,markflyhigh/incubator-beam,apache/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,iemejia/incubator-beam,apache/beam,lukecwik/incubator-beam,robertwb/incubator-beam,RyanSkraba/beam,RyanSkraba/beam,chamikaramj/beam,robertwb/incubator-beam,apache/beam,robertwb/incubator-beam,chamikaramj/beam,robertwb/incubator-beam,apache/beam,chamikaramj/beam,iemejia/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,RyanSkraba/beam,robertwb/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,apache/beam,markflyhigh/incubator-beam,apache/beam,lukecwik/incubator-beam,robertwb/incubator-beam,apache/beam,chamikaramj/beam,robertwb/incubator-beam,markflyhigh/incubator-beam,chamikaramj/beam,robertwb/incubator-beam