Added support for:
1) COUNT(WHERE(linkPath)) in search query
2) Starting WHERE clause in functions SUM,
AVERAGE, COUNT, MIN, MAX and DISTINCT