submission_count can either be a number or a function depending on where it is called from - fixes #1122
Merge pull request #1127 from modilabs/1122_replace_form_broken

submission_count can either be a number or a function