Project Euler 156 - Counting Digits

Official link: https://projecteuler.net/problem=1756