Count digits in a string, check if there its a fibonnaci number
Ruby, 151

d=[0,0];$&lt;.read.chars{|c|d[c&gt;?/&amp;&amp;c&lt;?:?0:1]+=1};puts"Digits: %d Nondigits: %d"%d
a=b=1;while b&lt;d[0];b=a+a=b end;print ([b,a]==d)??V:"Inv","alid program"