added horizontal scrolling of digits and counting of total number of fives that appear in the viewport