You can call size() anywhere within callback settings():
Here’s a link for an example on how to it on Processing’s Python Mode: