In an action for infringement of a patent the plaintiff shall be entitled, at his option, to an account of profits in lieu of damages.