Added Framework#link_count_limit_reached? helper
trainer module: Do not run if link-count limit has been reached

[Closes #341]