move revealed-count mechanism to fports.c