Depends on what county and what state you live in.
Depends on your local laws and restrictions. Its impossible to know without knowing where you live. In California it differs county to county...
Depending on state&county limits/example-sonoma county,ca limits are 30 plants,10x10 fenced growing area/state limits have been repealed