Added size(), length of targets

Signed-off-by: Joseph Lee <joseph@idealist.org>