Create method main and count.