First Homework Change

Turned x into an array.
Added function that counted number of numbers in array.
Changed template variable to m.