Fixed incorrect count