Query builder and driver count() functions. 

Eventually, this will be replaced by functions but for now, meh.