If I accidentally say it does it count as a sin?

If you intentionally say it yes it is.