Also, the count() help says:
Quote:
count(val, separator) -- interprets the value as a list of items separated by `separator`, returning the number of items in the list. Most lists use a comma as the separator, but authors uses an ampersand. Examples: {tags:count(,)}, {authors:count(&)}
|
i.e. look at the examples -- you can simply use
Code:
{#purchased1:count(,)}
No need to mess around with template program mode at all, though you can if you want.
Same difference either way, just thought I'd point out that the shorter way works as well.