calculate n in tolane methods at caller

Signed-off-by: Mattias Andrée <maandree@operamail.com>