For each $x$ in $[0,1]$, define $f(x)=2x$ if $0\le x\le\dfrac12$, and $f(x)=2-2x$ if $\dfrac12<x\le1$. Let $f^{[2]}(x)=f(f(x))$, and $f^{[n+1]}(x)=f^{[n]}(f(x))$ for each integer $n\ge2$. For how many values of $x$ in $[0,1]$ is $f^{[2005]}(x)=\dfrac12$?