How many custom fields can we add on sales invoice

You can put all in just 1 custom field. There are already some topics about this, e.g. How to add a signature to the Invoice Template and Custom field on sales invoice not showing on printed document

I recommend you use the search option in top right corner to find more topics if needed.