Move notifications_sent incrementer inside of conditional