In sum, a conscious agent has experiences and actions, which are menus (measurable spaces). It perceives, decides, and acts, which are conditional changes (Markovian kernels). And it counts how many experiences it has had. That’s the entire definition of a conscious agent. It is, a mathematician would assure you, a simple bit of math.