Our current varies with time according to the law
i(t)=10cost. We know that the current is
i(t)=dtdq(t),dq(t)=i(t)dt,dq(t)=10costdt,q(t)=∫10costdt=10sint+C=10sintbecause C=q(t0)=0.
On the other hand, we know that this charge was produced by electrons charged e coulombs each:
q(t)=N(t)e, N(t)=eq(t)=e10sint.
Comments