Ruby script to count the number of 'actual