changed the query to set count of table <table>=<count>