problem 5, count module