Bytestring version of wordcount