added count parameter to TW and FB directives