How many custom fields can I have in company/contact and can they be transfered?

There are limits.
Plz keep an eye on this Forum topic: