if(typeof(f)==="number") {
                    count = f;
                    f = args[args.length-2];
                } else {
                    count = f.length;