Added default count values to some functions.
Added SIMPLIFY = FALSE to mapply calls.
Added SIMPLIFY = FALSE to mapply calls.