The rules governing cookies stored for Analytics values are identical to cookies stored in general.
Looking online, there's this handy tool that outlines cookie limits based on the browser you're using:
Browser Cookie Limits
Keep in mind that if you're storing cookies on your domain for other purposes, you'll want to take those into consideration when storing Analytics values.