barriers use count from constructor instead of template
Merge pull request #1 from adamfur/barriers_count_specified_in_constructor_not_in_template

barriers use count from constructor instead of template