added ability to count rooms