statusd_laptopstatus: Remove use of table.getn()

table.getn() was deprecated in Lua 5.1 and replaced with the unary length operator (#).

This causes problems when used with notion built against debian's lua-5.2; the meter doesn't update and prints errors about trying to access nil field.