Changes part of Select to support functions

It also adds an alias do the COUNT function