fixed count bug
fixed count bug
added constructor