inputs properly counted