Advanced counting techniques