My site with existing content needs a field that shows the number of nodes of a certain content type that have been created by the current user.
I can't use Views because the field needs to be able to be used in a Rules condition.
Nor can I use Rules Actions and Flag at the time of adding nodes because so many nodes are pre-existing.
Nor can I use Display Suite code fields because I don't think they are able to be used in Rules either.
Is a computed field and a custom query the best option?
I have so far failed to find a code snippet and I am not experienced in PHP.