Add flags to wc and fix its line counting