Added "extend" (suggested in #2)
Added count support (suggested in #2)