added function to count checked out contacts