The number of exemptions for Form 540 line 7 is -0- when you can be claimed as a dependent, and that information comes from your federal return. You can see this in Forms Mode, open the California Info Worksheet and in Part VI is Dependent of Someone Else: - the Taxpayer box must be checked and that came from the equivalent box on the federal Info Worksheet.