if statement for negative true count value inserted