Three friends have a total of $6$ identical pencils, and each one has at least one pencil. In how many ways can this happen?

$\textbf{(A)}\ 1\qquad
\textbf{(B)}\ 3\qquad
\textbf{(C)}\ 6\qquad
\textbf{(D)}\ 10\qquad
\textbf{(E)}\ 12$
1. We start by giving each of the three friends one pencil. This ensures that each friend has at least one pencil. After this distribution, we have used up 3 pencils, leaving us with \(6 - 3 = 3\) pencils to distribute.
2. We now need to find the number of ways to distribute these remaining 3 pencils among the 3 friends. This is a classic problem of distributing indistinguishable objects (pencils) into distinguishable bins (friends).
3. The problem can be solved using the "stars and bars" theorem. The number of ways to distribute \(n\) indistinguishable objects into \(k\) distinguishable bins is given by the binomial coefficient:
   \[
   \binom{n+k-1}{k-1}
   \]
   In our case, \(n = 3\) (pencils) and \(k = 3\) (friends). Therefore, we need to calculate:
   \[
   \binom{3+3-1}{3-1} = \binom{5}{2}
   \]
4. We compute the binomial coefficient:
   \[
   \binom{5}{2} = \frac{5!}{2!(5-2)!} = \frac{5!}{2! \cdot 3!} = \frac{5 \cdot 4 \cdot 3!}{2! \cdot 3!} = \frac{5 \cdot 4}{2 \cdot 1} = 10
   \]
5. Therefore, there are 10 ways to distribute the remaining 3 pencils among the 3 friends.

The final answer is \(\boxed{10}\).