The teacher or principal of every school shall keep and furnish annually to the trustees of the school district a list of all pupils that have attended the school during the preceding scholastic year, showing the names of the pupils, their respective places of residence and the number of days each pupil has attended. Such list shall be certified to the county board of education by the trustees on or before the first day of August in every year.