There are 12 in total, the firs one was use to send Einstein 1 minute into the future, the second one was use by Marty to go back into the past. The third one was use by doc at the end of the movie. So you have a total of 3 capsules use, you have 9 left.
So did Doc use the 9 left or did he get Mr. Fusion before he ran out?