Problem Statement
Write a program that counts how many times the digit 3 appears in a given positive integer n. The program should read an integer n from standard input and output the count of digit 3 in n.
For example, if n = 32823, the digit 3 appears twice (at positions 0 and 4). If n = 124567, the digit 3 appears zero times. If n = 3333, the digit 3 appears four times.
Your solution should handle any positive integer that fits within the standard integer range.