Driver Code
public static void Main ( ) { int d = 1 ; Console . WriteLine ( findCountUpto ( d ) ) ; d = 2 ; Console . WriteLine ( findCountUpto ( d ) ) ; d = 4 ; Console . WriteLine ( findCountUpto ( d ) ) ; } }