assertAccessModifier

Tests whether the actual access modifier count matches with the expected one.