Added advisor count function