how to check count in console log