Added a license class to print GPL3 license and LICENSE.txt
Corrected the return value of counting methods to long.
Made from int[] to vector for dynamic arrays.