count diagnosis