added patient count method