Count it

Your task How many people visited the shop today? Each line of visits.log is one visit. Save the number of lines in total.txt, and the number of lines with /cart in them in cart.txt. Save only the numbers.

Getting the editor ready