**Instructions:**
Analyze the given molecule represented by a SMILES string to determine the total number of **phthalimide groups** present in the molecule.

- Assign unique indices to all non-hydrogen atoms in the molecule based on their order of appearance in the SMILES string (left to right), starting from 0.
- Identify **phthalimide groups**, defined as a bicyclic imide consisting of:
  - two carbonyl (C=O) units,
  - one nitrogen atom forming an imide bridge between the two carbonyl carbons,
  - and a fused benzene ring forming the phthalimide scaffold.
- Count the total number of phthalimide groups.
- For each phthalimide group, provide the indices of the atoms forming the imide ring system.
  (Include the two carbonyl oxygens, two carbonyl carbons, the nitrogen atom, and the two ring-junction carbons;  **7 atoms total**.)
- Present the results in the following structured format:
  1. Total number of phthalimide groups: Enclose this integer within <count> and </count>.
  2. Indices of phthalimide group atoms: Enclose the list of atom indices for each group within <atom_indices> and </atom_indices>. Each group should be represented as a separate list of indices.
- For example, if two phthalimide groups are found, the output should be formatted as follows:
  1. <count>2</count>
  2. <atom_indices> [0, 1, 2, 3, 4, 5, 6], [10, 11, 12, 13, 14, 15, 16] </atom_indices>

**SMILES string:** `{smiles}`
