changed patients model

using self.hospital.patients.size did not return the actual size of the entries but it returned the patient count from hospitals table , changing size to count removed the bug