Every operator maintaining a hotel or motel in the county and renting guestrooms, not exempted under this article, shall collect a tax of three percent of the amount of the rental paid by each occupant.