Buck has 45 cookies. He wants to pack an equal number of cookies into different bags. In how many ways can he pack the cookies if he must use at least two bags?​