added a counting of id entries