theme/plugin usage, what's allowed?

can i use however many themes and plugins to build as many sites as i want? what are the licensing limitations if any?
Thanks!