Added and, or, not, count, orderBy functions