[form_helpers] Use count instead of size (Closes #1184)