notes count in 1 query