Added solution to #12.
Added a simple way to count the number of factors and generate triangle numbers.