countD method is debugged and covered by test