I think I've found a bug when using f-strings:
pc.text(f'count: {State.count}'),
outputs: count: {state.count}
while... pc.text('count: ' + State.count),
outputs: count: 123
(I'm otherwise using the counter example, just with a default value of 123.)