Only count last-id when id is integer?