Added context processor for counting notes