Surface density of spacetime degrees of freedom from equipartition law in theories of gravity | Synapse