Sarah has a ribbon that is 48 inches long. She needs to cut it into pieces such that each piece is 1/4 of the total length. After cutting it into these pieces, she gives 1/3 of the pieces to her friend. How many pieces of ribbon does Sarah have left? Let's think step by step and output the final answer within \boxed{}.
user