A rope is 64 meters long. It is cut into pieces such that each piece is \( \frac{1}{8} \) meters long. How many pieces of rope are there, and what is the total length of all the pieces if each piece is then halved? Let's think step by step and output the final answer within \boxed{}.
user