added arguments counting for functions

function example:
func[x;y;z;...]