How to use count* as variable

i found the answer thanks…please delete this thread admin…
its repetitive like this