count mirrors instead of using a static value