Raina saves her allowance by putting a note into her money box each week. Each note was either a $2 note or a $5 note. Her father also puts in a $10 note every 30 days. The total amount she collected after 365 days was $278. How many of the notes were $5 notes?