Write a C++ code to count the number of characters, words, and lines entered by the user. The program stops if the user enters two dots.