Added total_entries method