Adding counting up recursive function