Count the Number of Powerful Integers | Leetcode 2999