Please read
this (search for "count(separator)").
I think what you need is
Edit: I usually use Quick Search (the text box on the left column of the manual) to find what I need if I don't remember exactly where it is in the manual. In this case, I typed "count" and clicked the second link. Using more words, Quick Search for "count custom column" will give you the right link as the first result.