updating count when notifieng and minor fixing an init option