modify count_mod logic, still flawed; refresh index.md content