How to count number of macro execution?
<p>I have two macros that declares class properties:</p>

<pre><code>DECLARE_QUERY_PARAM_LONG(name)
DECLARE_QUERY_PARAM_STRING(name)
</code></pre>

<p>I want to count number of calls of this macros inside of my class and init </p>

<pre><code>static const size_t paramsCount 
</code></pre>

<p>with that number like this:</p>

<pre><code>class MyClass {
...

    DECLARE_QUERY_PARAM_LONG(param1)
    DECLARE_QUERY_PARAM_STRING(param2)
    DECLARE_QUERY_PARAM_STRING(param3)
    DECLARE_QUERY_PARAM_LONG(param4)

    static const size_t paramsCount = PARAMS_COUNT; // 4 in this case

...
};
</code></pre>

<p>Is this ever possible?</p>
