getting and counting events method for LuceneQueryApi parameter added