Nit: for readability I'd prefer this to be linear, instead of a nested 'pyramid', ie

    if (params.size() > 0)
    {
        strAccount = params[0].get_str();
    }
    if (params.size() > 1)
    {
        nCount = params[1].get_int();
    }

After all, params.size()>2 implies params.size()>1 ... and so on.