driver program to test above function
public static void Main ( ) { Console . WriteLine ( count9s ( "01809" ) ) ; Console . WriteLine ( count9s ( "1809" ) ) ; Console . WriteLine ( count9s ( "4189" ) ) ; } }