countSundays(): fixed infinite recursion