make sure return type of count is int