to calculate the number of integers co-prime to N and less than N we can simply calculate its ETF( Euler's totient function - Wikipedia, the free encyclopedia . )However to calculate the number of integers co-prime to N but less then X where X < N , how can we modify / calculate it ? I know how to calcuate the ETF but can't proceed how to modify it to get the required result.

Thanks