count movies and series belonging to genres until we store them in columns.