Sql server AOAG license on readable secondary
You have to cover the readable secondary with proper license. So you have to count the cores on the secondary.
Count the cores assigned by the virtualizer (private cloud) or physical total cores (on-premise install).