Exactly. All you need to do is charge on 'per project basis'. But it's fare to say that not all freelancer can do this. There isn't really such thing as a 'freelancer'. A coder, a writer, a designer, a virtual assistant - these are entirely different lines of work.