added entry count and headers to sections