Count Powers in Range

Develop a function to count how many numbers in a given range can be expressed as the `n`th power of a specific integer.

The task is to build a function that calculates the number of integers in a specified range (from `a` to `b`, both inclusive) that can be expressed as the `n`th power of any integer. This function takes three arguments: `n`, which represents the power; `a`, the lower bound of the range; and `b`, the upper bound of the range. ### Parameters - `n`: The power that numbers are raised to. It is an integer number. - `a`, `b`: They are integer numbers representing the lower and higher bounds of the range (`a` <= `b`), respectively. ### Return Value - The function should return the total count of numbers within the range [a, b] that can be expressed as the `n`th power of any integer. ### Examples ```python # The squares within the interval 49 to 65 are 7^2 (49) and 8^2 (64) solution(2, 49, 65) #=> 2 # The cubes within the span 1 to 27 are 1^3 (1), 2^3 (8), and 3^3 (27) solution(3, 1, 27) #=> 3 # The only tenth power within the range 1 to 5 is 1^10 (1) solution(10, 1, 5) #=> 1 ``` ## Template Code ```python def solution(n, a, b): pass ```